<template>
<view class="editContent u-skeleton">
	<u-skeleton :loading="loading" :animation="true" bgColor="#FFF"></u-skeleton>

		<view class="content">
			<view class="row u-skeleton-fillet">
				<view class="nominal">
					收件人
				</view>
				<view class="input">
					<input placeholder="请输入收件人姓名" v-model="formData.name" type="text"  />
				</view>
			</view>
			<view class="row">
				<view class="nominal">
					电话号码
				</view>
				<view class="input">
					<input placeholder="请输入收件人电话号码" v-model="formData.moblie" type="number"  />
				</view>
			</view>
			<view class="row u-skeleton-fillet">
				<view class="nominal">
					所在学校
				</view>
				<view class="input" >
					{{schoolStore.mySchool.school_name}}
				</view>
				
			</view>
			<view class="row u-skeleton-fillet">
				<view class="nominal">
					详细地址
				</view>
				<view class="input">
					<textarea  :auto-height="false" v-model="formData.address" style="height: 250rpx;" placeholder="请输入详细地址"></textarea>
				</view>
			</view>
			<view class="row">
				<view class="nominal u-skeleton-fillet">
					设置默认地址
				</view>
				<view class="input switch">
					<switch color="#f37000" class="u-skeleton-fillet" :checked="formData.is_default" @change="(e)=>formData.is_default=e.detail.value"  style="transform:scale(0.8)" />
				</view>
			</view>
		</view>
		<view class="save" @click="save">
			<view class="u-skeleton-fillet btn">
				保存地址
			</view>
		</view>
	</view>
</template>

<script src="./edit.ts" lang="ts"></script>

<style lang="stylus" scoped>
@import './edit.styl';
</style>
